<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>


<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}
</style>

</head>
<body>


	<div class="container-fluid">

		<div class="row">
			<div class="col-sm-12 col-content">


				<h3>
					<button type="button" class="btn btn-default "
						data-ng-click="Model.goBack()">
						<span class="glyphicon glyphicon-arrow-left"></span> 返回
					</button>
					权限管理 <small>{{Model.params.roleName}}</small>
				</h3>
				<hr>


			</div>
		</div>


		<div class="row">
			
			<div class="col-sm-12 col-content">
				<uib-tabset> 
					<uib-tab heading="功能权限">
			
						<nav class="nav">
							<ul class="pagination navbar-left buttonBar">
								<li>
									<div class="btn-group" role="toolbar">
										<button type="button" class="btn btn-warning"
											data-ng-click="Model.triggerSelectPermissionClick()">
											<span class="glyphicon glyphicon-plus"></span> 分配权限
										</button>
										<button type="button" class="btn btn-default"
											data-ng-disabled="dataPermission.currentIndex==null"
											data-ng-click="Model.triggerDeletePermissionClick()"
											data-test="testvalue">
											<span class="glyphicon glyphicon-trash"></span> 删除
										</button>
										<button type="button" class="btn btn-success "
											data-ng-show="!Model.dataPermission.readonly()"
											data-ng-click="Model.saveDataPermission();">
											<span class="glyphicon glyphicon-floppy-save"></span> 保存
										</button>
									</div>
								</li>
							</ul>
							<query-like data="dataPermission" place-holder="模糊查询..."></query-like>
						</nav>

				<div class="table-responsive">
					<table class="table table-hover table-condensed" style="margin:0px;">
						<thead>

								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>

							<tr>
								<th>#</th>
								<th><input type="checkbox" data-ng-model="checkboxPermissionValue"
									data-ng-click="Model.checkboxPermissionClick($event)"></th>
								<th hidden="hidden">启用</th>
								<th hidden="hidden">sActivity</th>
								<th>全路径名</th>
								<th hidden="hidden">sProcess</th>
								<th hidden="hidden">sActionsNames</th>
								
								<th>动作</th>
								<th>数据查询</th>
								<th ng-if="false">数据查看</th>
								<th hidden="hidden">sPermissionRoleID</th>
								<th hidden="hidden">创建者id</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							<tr data-ng-show="row.userdata.recordState!='delete'"
								data-ng-class="{true:'active'}[dataPermission.currentIndex==dataPermission.rows.indexOf(row)]"
								data-ng-click="dataPermission.onRowClick(row,$event)"
								data-ng-dblclick="dataPermission.onRowDblclick(row,$event)"
								data-ng-repeat="row in dataPermission.rows">
								<td style="width: 10px;">
									<span data-ng-if="dataPermission.currentIndex==dataPermission.rows.indexOf(row)"
									class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
									<span data-ng-if="dataPermission.currentIndex!=dataPermission.rows.indexOf(row)">{{dataPermission.rows.indexOf(row)+1}}</span>
								</td>

								<td style="width: 50px;"><input type="checkbox"
									data-ng-model="row.userdata.checked"></td>
								<td style="width: 50px;" hidden="hidden"><span
									data-ng-show="row.sValidState.value==1"
									class="glyphicon glyphicon-ok" aria-hidden="true"></span></td>
								<td style="width: 100px;" hidden="hidden"><span
									data-ng-bind="row.sActivity.value"></span></td>
								<td style="width: 600px;" title="{{row.sProcess.value}}"><span
									data-ng-bind="row.sActivityFName.value"></span></td>
								<td style="width: 300px;" hidden="hidden"><span
									data-ng-bind="row.sProcess.value"></span></td>
								<td style="width: 100px;" hidden="hidden"><span
									data-ng-bind="row.sActionsNames.value"></span></td>
									
								<td style="width: 100px;">
									<a href="" data-ng-click="Model.triggerSelectActionClick(row.sID.value,row.systemFullID.value,row.sActions.value)">
										<span ng-if="row.sActions.value==''">设置（0）</span>
										<span ng-if="row.sActions.value!=''">设置（{{row.sActions.value.split(",").length}}）</span>
									</a>
								</td>
								<td style="width: 100px;" align="center">
									自己的<input title="只显示自己的数据" type="checkbox" data-ng-model="row.sDataAccess.value" data-ng-true-value="'Y'" data-ng-false-value="'N'">
								</td>
								<td style="width: 100px; padding-top:0px;padding-bottom:0px;" ng-if="false">
									<select class="form-control input-sm" data-ng-model="row.sDataAccess.value"
										data-ng-options="o.value as o.label for o in [{value:'public',label:'全部的'},{value:'private',label:'自己的'}]">
									</select>
								</td>
								<td style="width: 200px;" hidden="hidden"><span
									data-ng-bind="row.sPermissionRoleID.value"></span></td>
								<td style="width: 100px;" hidden="hidden"><span
									data-ng-bind="row.sCreatorFID.value"></span></td>

								<td style="width: 0px;"></td>
							</tr>

						</tbody>

							<tfoot>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>
							</tfoot>

					</table>
				</div>
				<!-- 分页组件 -->
				<pag-ination data="dataPermission" first-text="首页" previous-text="上一页" next-text="下一页" last-text="末页"></pag-ination>
			</uib-tab>
			
			<uib-tab heading="数据权限" ng-if="false">
			
						<nav class="nav">
							<ul class="pagination navbar-left buttonBar">
								<li>
									<div class="btn-group" role="toolbar">
										<button type="button" class="btn btn-warning"
											data-ng-click="Model.triggerSelectPermission1Click()">
											<span class="glyphicon glyphicon-plus"></span> 分配权限
										</button>
										<button type="button" class="btn btn-default"
											data-ng-disabled="dataPermission1.currentIndex==null"
											data-ng-click="Model.triggerDeletePermission1Click()"
											data-test="testvalue">
											<span class="glyphicon glyphicon-trash"></span> 删除
										</button>
									</div>
								</li>
							</ul>
							<query-like data="dataPermission1" place-holder="模糊查询..."></query-like>
						</nav>

				<div class="table-responsive">
					<table class="table table-hover table-condensed" style="margin:0px;">
						<thead>

								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>

							<tr>
								<th></th>
								<th>#</th>
								<th><input type="checkbox" data-ng-model="checkboxPermissionValue1"
									data-ng-click="Model.checkboxPermissionClick1($event)"></th>
								<th hidden="hidden">启用</th>
								<th hidden="hidden">sActivity</th>
								<th>全路径名</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							<tr data-ng-show="row.userdata.recordState!='delete'"
								data-ng-class="{true:'active'}[dataPermission1.currentIndex==dataPermission1.rows.indexOf(row)]"
								data-ng-click="dataPermission1.onRowClick(row,$event)"
								data-ng-dblclick="dataPermission1.onRowDblclick(row,$event)"
								data-ng-repeat="row in dataPermission1.rows">
								<td style="width: 10px;"><span
									data-ng-show="dataPermission1.currentIndex==dataPermission1.rows.indexOf(row)"
									class="glyphicon glyphicon-hand-right" aria-hidden="true"></span></td>

								<td style="width: 10px;">{{dataPermission1.rows.indexOf(row)+1}}<span></span></td>
								<td style="width: 50px;"><input type="checkbox"
									data-ng-model="row.userdata.checked"></td>
								<td style="width: 50px;" hidden="hidden"><span
									data-ng-show="row.sValidState.value==1"
									class="glyphicon glyphicon-ok" aria-hidden="true"></span></td>
								<td style="width: 100px;" hidden="hidden"><span
									data-ng-bind="row.sActivity.value"></span></td>
								<td style="width: 600px;"><span
									data-ng-bind="row.sActivityFName.value"></span></td>

								<td style="width: 0px;"></td>
							</tr>

						</tbody>

							<tfoot>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>
							</tfoot>

					</table>
				</div>
				<!-- 分页组件 -->
				<pag-ination data="dataPermission1" first-text="首页" previous-text="上一页" next-text="下一页" last-text="末页"></pag-ination>
			</uib-tab>
		</uib-tabset>

			</div>

		</div>
	</div>



</body>

</html>

